﻿namespace DatabaseDoc.Parameters
{
    using System.Collections.Generic;
    
    public class ParameterDependencyComparer : IComparer<ParameterDependency>
    {
        public int Compare(ParameterDependency x, ParameterDependency y)
        {
            return x.ParameterName.CompareTo(y) == 0 ? x.DependencyParameterName.CompareTo(y) : x.ParameterName.CompareTo(y);
        }
    }
}